<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <li></li>
    <li></li>
    <li></li>
    <script>
        const lis = document.querySelector('ul li')
        // lis.pop() 会报错 因为是伪数组
        const liss = Array.from(lis)//转化为真数组
        liss.pop()
        console.log(liss);
    </script>
</body>

</html>